package com.woniu.guoguo.service;

import com.woniu.guoguo.model.Order;
import com.woniu.guoguo.model.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Richie
 * @since 2020-11-03
 */
public interface IUserService extends IService<User> {

    User getuser(String phone);

    int adduser(String phone, String username, String password,String invitecode);

    User changeUser(int userId);

    void changeInfo(User user);

    User findInvite(String code);
    //添加邀请人
    void addinvite(User user);

    //根据id查询用户
    User findbyuserid(int id);

    //添加订单表
    void addorder(Order order);

    //修改用户余额
    void changebalance(double balance,int userId);

    //修改商家余额
    void changeshop(double balance,int shopId);

}
